package com.ruoyi.material.domain;

import java.io.Serializable;

/**
 * 用户项目表
 * @TableName sys_user_project
 */
public class SysUserProject implements Serializable {
    /**
     * 用户项目中间表主键
     */
    private Integer userProjectId;

    /**
     * 项目主键
     */
    private Long projectId;

    /**
     * 用户主键
     */
    private Long userId;

    private static final long serialVersionUID = 1L;

    /**
     * 用户项目中间表主键
     */
    public Integer getUserProjectId() {
        return userProjectId;
    }

    /**
     * 用户项目中间表主键
     */
    public void setUserProjectId(Integer userProjectId) {
        this.userProjectId = userProjectId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    /**
     * 用户主键
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 用户主键
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysUserProject other = (SysUserProject) that;
        return (this.getUserProjectId() == null ? other.getUserProjectId() == null : this.getUserProjectId().equals(other.getUserProjectId()))
            && (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserProjectId() == null) ? 0 : getUserProjectId().hashCode());
        result = prime * result + ((getProjectId() == null) ? 0 : getProjectId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userProjectId=").append(userProjectId);
        sb.append(", projectId=").append(projectId);
        sb.append(", userId=").append(userId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}